package io.webchat.n3r;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

public class SnowflakeUtil {


    public static String getId(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        return  String.valueOf(snowflake.nextId());
    }


}
